package com.haoshuang.zhouzhoubang.model.bean


import android.os.Parcelable
import androidx.annotation.Keep
import kotlinx.parcelize.Parcelize

/**
 * 门店成员
 * @property team_data TeamData?
 * @property team_member_data List<TeamMemberData?>?
 * @constructor
 */
@Keep
data class TeamMemberBean(
    val team_data: TeamData?,
    val team_member_data: MutableList<TeamMemberData>?
) {
    /**
     *
     * @property id Int? 门店ID
     * @property team_logo String? 门店logo
     * @property team_name String? 门店名称
     * @property technical_ability String?
     * @property user_id Int? 门店长ID
     * @constructor
     */
    @Keep
    data class TeamData(
        val id: Int?,
        val team_logo: String?,
        val team_name: String?,
        val technical_ability: String?,
        val user_id: Int?
    )

    /**
     *
     * @property add_time Int? 添加时间
     * @property avatar String? 成员头像
     * @property captain Int?
     * @property consent Int?
     * @property id Int? 数据id
     * @property nickname String? 成员名字
     * @property skill_name List<String?>? 成员技能列表
     * @property team_id Int? 门店id
     * @property to_user_id Int? 成员id
     * @property who_apply Int?
     * @property work_rest String? 是否休息 1休息 0正常
     * @property work_status Int?
     * @constructor
     */
    @Keep
    @Parcelize
    data class TeamMemberData(
        val add_time: Int?,
        val avatar: String?,
        val captain: Int?,
        val consent: Int?,
        val id: Int?,
        val nickname: String?,
        val skill_name: List<String>?,
        val team_id: Int?,
        val to_user_id: Int?,
        val who_apply: Int?,
        val work_rest: String?,
        val work_status: Int?,
        var isChoose: Boolean? = false,
    ) : Parcelable
}